package com.bishe.app.modules.groupuser.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 组织-用户表
 * </p>
 *
 * @author 
 * @since 2024-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_group_user")
public class GroupUser implements Serializable {


    /**
     * 主键ID
     */
    @TableId(value="id",type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 组织ID
     */
    private Long groupId;

    /**
     * 0 not leader 1 leader
     */
    private Integer leader;

    /**
     * 0未删除 1删除
     */
    private Integer isDel;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;

    /**
     * 更新时间
     */
    private LocalDateTime updatedAt;

    /**
     * 操作用户
     */
    private String opUser;


}
